home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ CMD Options 1.xpl < prev    next >
Text File  |  1999-10-17  |  1KB  |  50 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\Security"
  5. "NAME"="Disable DOS Box"
  6. "VERSION"="1.03"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Disable starting a DOS Box"
  9. "DESCRIPTION 1"="If this option is set, the current user is no longer allowed to start a DOS box (COMMAND.COM)."
  10. "AUTHOR"="Xteq Systems"
  11. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  12. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  13.  
  14.  
  15.  
  16. sPath="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\WinOldApp\Disabled"
  17.  
  18. Sub Plugin_Initialize 
  19.  If GetWinVer=1 or GetWinVer=3 then
  20.     i=RegReadValue(sPath)
  21.     if i=1 then
  22.        Call SetUIElement(1,true) 
  23.     end if  
  24.  else
  25.     Call Disable()
  26.  end if
  27. End Sub
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  b=GetUIElement(1)
  34.  if b=true then
  35.     Call RegWriteValue(sPath,1,2) 
  36.  else
  37.     s=RegReadValue(sPath)
  38.     if IsEmpty(s)=false then
  39.        Call RegDeleteValue(sPath)
  40.     end if
  41.  end if
  42. End Sub
  43.  
  44.  
  45. Sub Plugin_Terminate 
  46. End Sub
  47.  
  48.  
  49.  
  50.